package com.lfy.event;

import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SendLfy {
    @Resource
    private ApplicationEventPublisher publisher;

    public String sendMsg(Lfy lfy){
        publisher.publishEvent(new EventLfyEntity(this,lfy));
        return "ok";
    }

    public static void main(String[] args) {

    }
}

